var FormController = function(data){

    var model = new FormModel(data);

    function fill_clicked(){
        model.setInputText(data.text);
    }

    function clear_clicked(){
        model.setInputText('');
    }

    function init(){

        $(data.fill).click(function(){ fill_clicked(); });
        $(data.clear).click(function(){ clear_clicked(); });
    }

    return {
        init: init,
        model : model
    };
};
